/*
 * Powered By [rapid-framework]
 * Web Site: http://www.rapid-framework.org.cn
 * Google Code: http://code.google.com/p/rapid-framework/
 * Since 2008 - 2016
 */

package com.jzwl.site.manager.article.service;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.jzwl.common.page.PageObject;
import com.jzwl.site.manager.article.dao.SiteArticleDao;

@Service("siteArticleService")
public class SiteArticleService {

	@Autowired
	private SiteArticleDao siteArticleDao;

	public boolean addSiteArticle(Map<String, Object> map) {

		return siteArticleDao.addSiteArticle(map);

	}

	public PageObject querySiteArticleList(Map<String, Object> map) {

		return siteArticleDao.querySiteArticleList(map);

	}

	public boolean updateSiteArticle(Map<String, Object> map) {

		return siteArticleDao.updateSiteArticle(map);

	}

	public boolean deleteSiteArticle(Map<String, Object> map) {

		return siteArticleDao.deleteSiteArticle(map);

	}

	public boolean delSiteArticle(Map<String, Object> map) {

		return siteArticleDao.delSiteArticle(map);
	}

	@SuppressWarnings("unchecked")
	public Map getById(Map<String, Object> map) {

		return siteArticleDao.getById(map);
	}

	@SuppressWarnings("unchecked")
	public Map getInfoByNodeId(Map<String, Object> map) {

		return siteArticleDao.getInfoByNodeId(map);
	}

	public boolean pubArticle(Map<String, Object> map) {
		return siteArticleDao.pubArticle(map);
	}

	public boolean setValue(Map<String, Object> map) {
		return siteArticleDao.setValue(map);
	}

	///////////////////////////////////////////////////
	@SuppressWarnings("unchecked")
	public Map getUsById() {

		return siteArticleDao.getUsById();
	}

	public boolean updateUs(Map<String, Object> map) {

		return siteArticleDao.updateUs(map);

	}
}
